package com.cst.student.controller;


import com.cst.student.entity.Student;
import com.cst.student.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cst
 * @since 2022-03-18
 */
@RestController
@RequestMapping("/student")
public class StudentController {

    @Autowired
    StudentService studentService;

    @RequestMapping("/index")
    public Object index(){
       return studentService.getStudentList();
    }

}
